<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>黑马探花</title>
    <meta name="keywords" content="黑马探花，探花黑马" />
    <meta name="description" content="黑马探花欢迎您。" />
    <link rel="stylesheet" href="/css/pintuer.css">
    <link rel="stylesheet" href="/css/admin.css">
    <script src="/js/jquery.js"></script>
    <script src="/js/vuejs-2.5.16.js"></script>
    <script src="/js/axios-0.18.0.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1><img src="/images/11.jpg" class="radius-circle rotate-hover" height="50" alt="" />探花后台管理</h1>
  </div>
  <div class="head-l"><a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span> 前台首页</a>
      <a class="button button-little bg-red" href="javascript:" onclick="logOut()"><span class="icon-power-off" ></span> 退出登录</a> </div>
</div>
<div class="leftnav">
  <div class="leftnav-title"><strong><span class="icon-list"></span>功能列表</strong></div>
  <h2><span class="icon-user"></span>用户管理</h2>
  <ul style="display:block">
    <li><a href="/user_list.html" target="right"><span class="icon-caret-right"></span>用户列表</a></li>
  </ul>   
  <h2><span class="icon-pencil-square-o"></span>灵魂管理</h2>
  <ul style="display:block">
      <li><a href="/question_bank.html" target="right"><span class="icon-caret-right"></span>题库管理</a></li>
  </ul>
</div>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  });
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
  })
});
</script>
<script>
    function logOut() {
        //创建ajax对象
        let xhr = new XMLHttpRequest();
        //指定发送请求方式和地址
        xhr.open("get","http://localhost:18088/houtai/logout");
        xhr.setRequestHeader("Authorization",localStorage.getItem("Authorization"));
        xhr.send();
        //清除浏览器存储令牌
        localStorage.removeItem("Authorization");
        //重新加载页面
        location.reload(true);
    }
</script>
<ul class="bread">
  <li><a href="/door.html" target="right" class="icon-home"> 首页</a></li>

</ul>
<div class="admin">
  <iframe scrolling="auto" rameborder="0" src="/welcome.html" name="right" width="100%" height="100%"></iframe>
</div>
<script src="/js/verify.js"></script>

</body>
</html>